@charset "utf-8";
/* CSS Document */

@font-face {
    font-family: 阿里巴巴普惠体;
    src: url("../../fonts/Alibaba_PuHuiTi_2.0_115_Black_115_Black.ttf");
}

.container {
    display: flex;
    background-image: url("../../images/bg.png");
    background-size: 100% 100%;
}

.side-panel {
    margin-left: 50px;
    margin-right: 50px;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    width: 50%;
}

.score-board {
    line-height: 50px;
    height: 13%;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between; /* 使子元素分别居左和居右 */
}



.chat-input {
    display: flex;
    height: 10%;
}

#messageInput {
    font-size: 20px;
    font-family: 阿里巴巴普惠体;
    border-radius: 16px;
    border: 3.75px solid #FFF;
    background: #4A4A4A;
    color: #FFFFFF;
    text-align: left;
    padding-left: 15px;
}

#sendMessageButton {
    width: 20%;
    border-radius: 10px;
    border: 3.75px solid #FFF;
    background: #4A4A4A;
    font-family: 阿里巴巴普惠体;
    font-size: 35px;
    color: #FFFFFF;
}

#sendMessageButton:hover {
    cursor: pointer;
    background: #FFF;
    color: #4A4A4A;
}

.chat-input input {
    flex-grow: 1;
    border-radius: 10px;
}

.chat-input input:focus {
    background-color: #e0f7fa; /* 你可以根据需要更改颜色 */
    outline: none; /* 可选：移除默认的聚焦轮廓 */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); /* 可选：添加阴影效果 */
}

.chat-input button {
    margin-left: 5px;
}



.roomInformation {
    color: white;
    display: inline-block;
    font-family: 阿里巴巴普惠体;
    font-size: 20px;
    width: 100%;
    text-align: center;
}

.roomInformation:hover {
    color: black;
    cursor: pointer;
}

#board {
    display: block;
    margin: auto;
    background-size: cover;
    width: 50%;
    height: 810px;
}

.score {
    display: inline-block;
}

.scoreLabel {
    font-family: 阿里巴巴普惠体;
    width: 20%;
    line-height: normal;
}

.sl-white {
    text-align: right;
}

.sl-black {
    text-align: left;
}

.score-black {
    color: #FFF;
    font-size: 22px;
    font-style: normal;
    font-weight: 1000;
    margin-right: 10px;
}

.score-white {
    color: #FFF;
    font-size: 22px;
    font-style: normal;
    font-weight: 1000;
    margin-left: 10px;
}

.sl-black-chess {
    position: relative;
    top: 10px;
    display: inline-block;
    height: 33px;
    width: 33px;
    border-radius: 50%;
    background: radial-gradient(5px 5px at 10px 10px, #fff, #333);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.sl-white-chess {
    position: relative;
    top: 10px;
    display: inline-block;
    height: 33px;
    width: 33px;
    border-radius: 50%;
    background: radial-gradient(10px 10px at 10px 10px, #fff, #e2e2e2);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    align-items: center;
}

.sl-other-chess {
    position: relative;
    top: 10px;
    display: inline-block;
    height: 30px;
    width: 30px;
    border-radius: 50%;
    border: 3px solid white;
    align-items: center;
}


#chessboardCanvas {
    position: relative;
}

.scoreSpan {
    color: #FFF;
    font-family: 阿里巴巴普惠体;
    font-size: 50px;
    font-style: normal;
    font-weight: 1000;
    line-height: normal;
}

.sl-center {
    text-align: center;
    font-size: 25px;
}


.logout {
    height: 30%;
    width: 260px;
    display: inline-block;
}

#logout-button {
    height: 50px;
    width: 260px;
    border-radius: 10px;
    border: 3.75px solid #FFF;
    background: #4A4A4A;
    font-family: 阿里巴巴普惠体;
    color: #FFFFFF;
}

#logout-button:hover {
    background: #FFF;
    color: #4A4A4A;
    cursor: pointer;
}

#ready {
    text-align: right;
    line-height: 50px;
}

.ready-button {
    width: 400px;
    height: 50px;
    border-radius: 10px;
    border: 3.75px solid #FFF;
    background: #4A4A4A;
    font-family: 阿里巴巴普惠体;
    color: #FFFFFF;
}

.ready-button:hover {
    background: #FFF;
    color: #4A4A4A;
    cursor: pointer;
}


.fancy-button {
    position: relative;
    padding: 15px 30px;
    font-size: 18px;
    color: black;
    text-transform: uppercase;
    border: none;
    border-radius: 50px;
    background: linear-gradient(45deg, #ffffff, #cccccc);
    cursor: pointer;
    outline: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
}

.fancy-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ffffff, #cccccc);
    transform: translateX(-100%);
    transition: all 0.3s ease;
}

.fancy-button:hover::before {
    transform: translateX(0);
}

.fancy-button:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.fancy-button:active {
    transform: scale(0.95);
}
